package com.example.qing.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id; //ID
    private String username; //用户名
    private String password; //密码
    private String name; //姓名
    private String image; //图像url
    private String phone;
    private String role;

    @TableField(exist = false)
    private String token;
}
